import 'dart:async';

import 'package:bloc_usage/bloc/Bloc.dart';
import 'package:bloc_usage/model/HomeDrawerModel.dart';

class HomeDrawerBloc extends Bloc {
  //drawer avatar
  var _streamController = StreamController<HomeDrawerModel>.broadcast();

  get homeDrawerStream => _streamController.stream;

  //count down
  var _countStreamController =StreamController<int>.broadcast();
  get countStream => _countStreamController.stream;

  changeCount(int count) => _countStreamController.sink.add(count);

  @override
  void release() {
    // _streamController.close();
    // _countStreamController.close();
  }
}
